.offset-subnavigation {
    background-color: $blue-20;
}

.site-subnavigation {
    color: $blue-100;
    position: relative;

    @include sm-only {
        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 1.25rem;
            background: linear-gradient(
                to right,
                $blue-20 15%,
                rgba($blue-20, 0)
            );
            z-index: 1;
        }

        &::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            width: 1.25rem;
            background: linear-gradient(
                to left,
                $blue-20 15%,
                rgba($blue-20, 0)
            );
            z-index: 1;
        }
    }
}

.site-subnavigation-scroll {
    display: flex;
    align-items: center;

    @include sm-only {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

.site-subnavigation-links {
    flex: 1;
    display: flex;
    align-items: baseline;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    list-style-type: none;

    @include sm-only {
        flex-wrap: nowrap;
        justify-content: left;
    }

    li {
        color: $blue-100;
        padding: 0 6px;
        font-size: 14px;
        &:first-child {
            font-size: inherit;
            svg {
                vertical-align: middle;
                font-size: 10px;
                margin-left: 4px;
                transform: rotate(180deg);
            }
        }
    }

    a {
        color: inherit;
        text-decoration: none;
        display: block;
        white-space: nowrap;
        padding-top: 12px;
        padding-bottom: 12px;

        &:hover {
            padding-bottom: 9px;
            border-bottom: 3px solid $vermillion;
        }
    }

    .highlight a {
        font-weight: bold;
    }

    .current a {
        border-bottom: 3px solid $vermillion;
        padding-bottom: 9px;
    }
}
